angular.module('faApp')
.service('newsService', ['ajaxService', function(ajaxService) {

  this.newsAdd = function(news) {
    return ajaxService.post(ajaxService.getApiUri("NEWS_ADD"), news || {});
  };

  this.newsEdit = function(news) {
    return ajaxService.post(ajaxService.getApiUri("NEWS_EDIT"), news || {});
  };

  this.newsDelete = function(news) {
    return ajaxService.post(ajaxService.getApiUri("NEWS_DELETE"), news || {});
  };

  this.newsList = function(news) {
    return ajaxService.post(ajaxService.getApiUri("NEWS_LIST"), news || {});
  };

}]);